package com.hey.service.service;

import com.hey.common.result.MultiResult;
import com.hey.service.dao.UserRepository;
import com.hey.service.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    UserRepository userRepository;

    public MultiResult findAllUser(){
        return new MultiResult(userRepository.findAll());
    }
}
